﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Clannan.Models.ViewModel.LoginModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>Login</h2>
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()){%>

        <%= Html.TextBoxFor(model => model.Name)%><%=Html.ValidationMessageFor(model => model.Name)%>
        <%= Html.PasswordFor(model => model.Password)%><%=Html.ValidationMessageFor(model => model.Password)%>
        <%= Html.TextBox("Code", "",new { maxlength = "4" })%>
        <img id="validateCode" name="validateCode" src="/Home/AuthCode" />
        <input type="submit" value="登陆" />
        <%=Html.ValidationMessage("Code")%><%=Html.ValidationMessage("Error")%>
    <%} %>

</asp:Content>

